package flst.ipiweb.presentation.envoiColis;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import flst.ipiweb.transverse.Admin;

public class EnvoiColisAction extends Action {

	public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception 
	{
		// Modifications pour la gestion de session
		HttpSession sess = request.getSession(true);
		Admin adm = (Admin)sess.getAttribute("User");
		if (adm!=null){
			
			
			return mapping.findForward("colisOk");
		}
		else{
			return mapping.findForward("colisKo");
		}
	}
}
